Defines the base class for all line ending styles.
public abstract class AnnLineEnding Public MustInherit Class AnnLineEnding public:ref class AnnLineEnding abstract
The line ending styles are the shapes that can be added to the start and end of the polyline object. The following ending styles are supported:

The AnnLineEnding class provides all the basic functionality common to all LEADTOOLS line ending styles. AnnLineEnding is an abstract class and cannot be instantiated directly. Instead, you create an instance of a derived class such as AnnArrowLineEnding or AnnButtLineEnding and use the methods and properties of the base AnnLineEnding through the derived class.
The line ending styles cannot be added to closed polyline objects.
This example creates a list of polyline objects, all ending style types, and sets them to polyline objects ending styles.
using LeadtoolsExamples.Common;using Leadtools.Annotations.Automation;using Leadtools.Annotations.Engine;using Leadtools.Codecs;using Leadtools.Annotations.WinForms;public void AnnCore_AnnLineEnding(){// assumes _automation is validdouble inch = 720.0;// Create polyline object and add it the automation containerAnnPolylineObject polyLine = new AnnPolylineObject();polyLine.Points.Add(LeadPointD.Create(1 * inch, 1 * inch));polyLine.Points.Add(LeadPointD.Create(2 * inch, 1 * inch));_automation.Container.Children.Add(polyLine);// Create arrow line ending style and set some propertiesAnnArrowLineEnding arrowStyle = new AnnArrowLineEnding();arrowStyle.Closed = true;arrowStyle.Reversed = true;arrowStyle.Fill = AnnSolidColorBrush.Create("Yellow");// Set the the created arrow style to polyline start and end stylepolyLine.StartStyle = arrowStyle;polyLine.EndStyle = arrowStyle;// Create another polyline object and add it the automation containerpolyLine = new AnnPolylineObject();polyLine.Points.Add(LeadPointD.Create(1 * inch, 1.2 * inch));polyLine.Points.Add(LeadPointD.Create(2 * inch, 1.2 * inch));_automation.Container.Children.Add(polyLine);// Create butt line ending styleAnnButtLineEnding buttStyle = new AnnButtLineEnding();// Set the the created butt style to polyline start and end stylepolyLine.StartStyle = buttStyle;polyLine.EndStyle = buttStyle;// Create another polyline object and add it the automation containerpolyLine = new AnnPolylineObject();polyLine.Points.Add(LeadPointD.Create(1 * inch, 1.4 * inch));polyLine.Points.Add(LeadPointD.Create(2 * inch, 1.4 * inch));_automation.Container.Children.Add(polyLine);// Create slash line ending styleAnnSlashLineEnding slashStyle = new AnnSlashLineEnding();// Set the the created slash style to polyline start and end stylepolyLine.StartStyle = slashStyle;polyLine.EndStyle = slashStyle;// Create another polyline object and add it the automation containerpolyLine = new AnnPolylineObject();polyLine.Points.Add(LeadPointD.Create(1 * inch, 1.6 * inch));polyLine.Points.Add(LeadPointD.Create(2 * inch, 1.6 * inch));_automation.Container.Children.Add(polyLine);// Create square line ending styleAnnSquareLineEnding squareStyle = new AnnSquareLineEnding();// Set the the created square style to polyline start and end stylepolyLine.StartStyle = squareStyle;polyLine.EndStyle = squareStyle;// Create another polyline object and add it the automation containerpolyLine = new AnnPolylineObject();polyLine.Points.Add(LeadPointD.Create(1 * inch, 1.8 * inch));polyLine.Points.Add(LeadPointD.Create(2 * inch, 1.8 * inch));_automation.Container.Children.Add(polyLine);// Create diamond line ending styleAnnDiamondLineEnding diamondStyle = new AnnDiamondLineEnding();// Set the the created diamond style to polyline start and end stylepolyLine.StartStyle = diamondStyle;polyLine.EndStyle = diamondStyle;// Create another polyline object and add it the automation containerpolyLine = new AnnPolylineObject();polyLine.Points.Add(LeadPointD.Create(1 * inch, 2 * inch));polyLine.Points.Add(LeadPointD.Create(2 * inch, 2 * inch));_automation.Container.Children.Add(polyLine);// Create round line ending styleAnnRoundLineEnding roundStyle = new AnnRoundLineEnding();// Set the the created round style to polyline start and end stylepolyLine.StartStyle = roundStyle;polyLine.EndStyle = roundStyle;}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
